
import request from '@/utils/request'

/* 获取员工列表 */
export function getEmployeeList(params) {
  return request({
    methods: 'get',
    url: '/sys/user',
    params
  })
}
/* 删除员工*/
export function delEmployee(params) {
  return request({
    methods: 'delete',
    url: '/sys/user/${id}'
  })
}
/* 添加员工成功 */
export function addEmployee(data) {
  return request({
    methods: 'POST',
    url: '/sys/user',
    data
  })
}
/* 导入Excel */
export function importEmployee(data) {
  return request({
    url: '/sys/user/batch',
    methods: 'POST',
    data
  })
}
/* 给员工分配角色 */
export function assignRoles(data) {
  return request({
    url: '/sys/user/assignRoles',
    method: 'PUT',
    data
  })
}

